<?php
$data['cur_parent_menu']='master';
$data['cur_selected_menu']='spbu';
$this->load->view('template/menu_view',$data);
?>
<br/><br/><br/><br />
<div class="gridcenter" style="font-family: 'open sans',arial,sans-serif;font-size: 18px;font-weight:bold;color:#666666;">Ubah SPBU</div>
<br />
<script>
	$(document).ready(function() {
	$("#form_edit_spbu").validate({
		rules: {
			kode_spbu: "required",
			nama : "required",
			alamat : "required",
			kontak_nama : "required",
			kontak_telp : "required"
		},
		messages: {
			kode_spbu: " *Kode SPBU harus diisi",
			nama : " *Nama SPBU harus diisi",
			alamat : " *Alamat SPBU harus diisi",
			kontak_nama : " *Nama Kontak harus diisi",
			kontak_telp : " *Telp. Kontak harus diisi"
		}});
	});
</script>
<div class="demo_jui datagrid gridcenter">
<form id="form_edit_spbu" method="post" action="<?php echo SPBU ?>process_edit_spbu/<?php echo $id?>">
	<table width="700">
	<tr>
		<td width="150">
			Kode SPBU
		</td>
		<td>
			: <input type="text" name="kode_spbu" value="<?php echo $kode_spbu ?>"/>
		</td>
	</tr>
	<tr>
		<td>
			Nama SPBU
		</td>
		<td>
			: <input type="text" name="nama" value="<?php echo $nama ?>"/>
		</td>
	</tr>
	<tr>
		<td>
			Alamat SPBU
		</td>
		<td>
			: <input type="text" name="alamat" value="<?php echo $alamat ?>"/>
		</td>
	</tr>
	<tr>
		<td>
			Kontak Nama
		</td>
		<td>
			: <input type="text" name="kontak_nama" value="<?php echo $kontak_nama ?>"/>
		</td>
	</tr>
	<tr>
		<td>
			Kontak Telp
		</td>
		<td>
			: <input type="text" name="kontak_telp" value="<?php echo $kontak_telp ?>"/>
		</td>
	</tr>
	<tr>
		<td>
			Status Aktif
		</td>
		<td>: 
			<?php
				$opt = array(
					1=>'Ya',
					0=>'Tidak'
				);
				echo form_dropdown('is_active', $opt,$is_active);
			?>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="Ubah"/>
		</td>
	</tr>
</table>
</form>
</div>